package com.navid.trafalgar.model;

import com.jme3.asset.AssetManager;
import com.jme3.system.AppSettings;
import com.navid.trafalgar.manager.EventManager;
import com.navid.trafalgar.model.opengl2.ModelBuilder;

/**
 *
 * @author alberto
 */
public class ModelBuilderFactory {

    public static IModelBuilder getModelBuilder(AppSettings settings, AssetManager assetManager, EventManager eventManager) {

        if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL1)) {
            return new com.navid.trafalgar.model.opengl1.ModelBuilder(assetManager);
        }

        return new ModelBuilder(assetManager, eventManager);
    }
}
